package com.example.demo.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import com.example.demo.entity.Bayonet;

/**
 * 查询mapper
 * @author admin
 *
 */
@Component
public interface HbaseCarsMessageMapper {
	@Select({"select * from location"})
	List<Bayonet> getBayonet();
	
	@Select({"select * from location where id = #{locationId}"})
	Bayonet get(String locationId);
	
	@Select({"select * from location where longitude = #{longitude} and latitude = #{latitude}"})
	Bayonet selectByLongitudeAndLatitude(String longitude,String latitude);
}
